package o;

import com.huawei.hms.support.hianalytics.HiAnalyticsConstant;
import java.util.LinkedHashMap;

public class evg {
    public static LinkedHashMap<String, String> ॱ(String str, String str2, String str3, int i, int i2) {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("deeplink", str);
        linkedHashMap.put("ownerView", str2);
        linkedHashMap.put("ownerApp", str3);
        linkedHashMap.put("service_type", String.valueOf(i));
        linkedHashMap.put(HiAnalyticsConstant.BI_KEY_RESUST, String.valueOf(i2));
        return linkedHashMap;
    }

    public static LinkedHashMap<String, String> ˋ(String str, String str2, String str3, int i) {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("deeplink", str);
        linkedHashMap.put("ownerView", str2);
        linkedHashMap.put("ownerApp", str3);
        linkedHashMap.put("service_type", String.valueOf(i));
        return linkedHashMap;
    }

    public static LinkedHashMap<String, String> ˏ(long j, String str, String str2) {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("times", String.valueOf(j));
        linkedHashMap.put("ownerView", str);
        linkedHashMap.put("service_type", str2);
        return linkedHashMap;
    }

    public static LinkedHashMap<String, String> ˏ(String str, String str2, String str3) {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("linkurl", str);
        linkedHashMap.put("ownerView", str2);
        linkedHashMap.put("service_type", str3);
        return linkedHashMap;
    }

    public static LinkedHashMap<String, String> ˊ(int i, String str, String str2, int i2, String str3) {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("errorcode", String.valueOf(i));
        linkedHashMap.put("logId", str);
        linkedHashMap.put("playUrl", str2);
        linkedHashMap.put("service_type", String.valueOf(i2));
        linkedHashMap.put("logSource", str3);
        return linkedHashMap;
    }

    public static LinkedHashMap<String, String> ˋ(long j, int i, String str, int i2, String str2) {
        LinkedHashMap<String, String> linkedHashMap = new LinkedHashMap();
        linkedHashMap.put("playTime", String.valueOf(j));
        linkedHashMap.put("service_type", String.valueOf(i));
        linkedHashMap.put("logId", str);
        linkedHashMap.put("PlayMode", String.valueOf(i2));
        linkedHashMap.put("logSource", str2);
        return linkedHashMap;
    }

    public static long ॱ(int i, String str) {
        long ˏॱ;
        boolean z = false;
        boolean ˋ = epe.ˏ().ˋ(i, str);
        boolean z2 = epe.ˏ().ˏॱ() != -1;
        if (ˋ && z2) {
            z = true;
        }
        if (z) {
            ˏॱ = epe.ˏ().ˏॱ();
        } else {
            ˏॱ = dgh.ॱ();
        }
        if (epe.ˏ().ˊ(i, str)) {
            epe.ˏ().ˋ(true);
        }
        return ˏॱ;
    }

    public static void ˎ(int i, String str, long j) {
        if (epe.ˏ().ˋ(i, str)) {
            epe.ˏ().ˋ(j);
        } else {
            dgh.ˋ("340103", ˏ(System.currentTimeMillis() - j, str, String.valueOf(i)));
        }
        if (epe.ˏ().ˊ(i, str)) {
            epe.ˏ().ˋ(false);
        }
    }
}
